switch: Change handle_x to handle_pos
authorBenjamin Otte <otte@redhat.com>
Mon, 16 Feb 2015 05:25:44 +0000 (06:25 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 16 Feb 2015 22:57:04 +0000 (23:57 +0100)
commite1081bc4719c9e8cfef0d931d29838316412fa41
tree20619b7d30a426628641404c8cb9eadb9597f6d0
parent86a41b108e34c69ca03f65838fd67bf9c124aadf
switch: Change handle_x to handle_pos

Make that variable go from 0.0 to 1.0 where 0.0 means inactive (slider
is on the left) and 1.0 means active (slider is on the right).

The math is simpler that way and most importantly the value is
independent of size.
gtk/gtkswitch.c